package com.example.banksys;

import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;

public class tradeItem {
    public enum tradeType{
        SAVE,TAKE,LOAN,FINANCIAL_PRODUCT,INTEREST
    }

    public enum tradeDuration{
        INSTANT,ONE,TWO,THREE,FIVE
    }

    private final SimpleLongProperty tradeID;
    private final SimpleStringProperty tradeType;
    private final SimpleStringProperty tradeName;
    private final SimpleStringProperty tradeDuration;
    private final SimpleStringProperty tradeDescription;

    public tradeItem(){
        tradeID=new SimpleLongProperty();
        tradeType=new SimpleStringProperty();
        tradeName=new SimpleStringProperty();
        tradeDescription=new SimpleStringProperty();
        tradeDuration=new SimpleStringProperty();
    }

    public void setTradeID(long tradeID) {
        this.tradeID.set(tradeID);
    }

    public void setTradeType(String tradeType) {
        this.tradeType.set(tradeType);
    }

    public void setTradeDescription(String tradeDescription) {
        this.tradeDescription.set(tradeDescription);
    }

    public void setTradeDuration(String tradeDuration) {
        this.tradeDuration.set(tradeDuration);
    }

    public void setTradeName(String tradeName) {
        this.tradeName.set(tradeName);
    }
    public SimpleStringProperty getTradeType(){
        return this.tradeType;
    }
    public SimpleLongProperty getTradeID(){
        return tradeID;
    }

    public SimpleStringProperty getTradeName(){
        return this.tradeName;
    }

    public SimpleStringProperty getTradeDuration(){
        return this.tradeDuration;
    }

    public SimpleStringProperty getTradeDescription(){
        return this.tradeDescription;
    }

}
